package com.indeep.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.indeep.user.mapper.po.AppInvitationCodePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AppInvitationCodeMapper extends BaseMapper<AppInvitationCodePO> {
    
    @Update("update app_invitation_code " +
            "set cur_num = cur_num - 1 " +
            "where id = #{codeId} ")
    void inviteNewUser(Integer codeId);
}
